<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php if ( is_home() ) { ?>
<?php bloginfo('description'); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_search() ) { ?>
Результаты поиска&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_single() ) { ?>
<?php wp_title(''); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_page() ) { ?>
<?php wp_title(''); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_category() ) { ?>
<?php single_cat_title(); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_month() ) { ?>
Записи <?php the_time('F '); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?>
<? bloginfo('name'); ?>
&nbsp;|&nbsp;Записи с меткой &nbsp;|&nbsp;
<?php  single_tag_title("", true); } } ?>
</title>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>"/>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
<link rel="pingback" href="<?php bloginfo('template_url'); ?>/xmlrpc.php" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen"/>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body>
<?php 
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
      ?>
<div id="header">
<div id="header-top">
<div id="navbarleft">
<span class="date">
<script src="<?php bloginfo('template_url'); ?>/js/date.js" type="text/javascript"></script>
</span>
</div> 

<div id="navbarright">
<ul id="nav">
<li><a href="<?php echo get_settings('home'); ?>">главная</a></li>
<?php wp_list_pages("title_li=&depth=3&sort_column=menu_order&exclude=$ultra_exclude_page"); ?>
</ul>
</div>

</div> <!--header-top-->

 <div style="clear:both;"></div> 
 
<div class="logo">
<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1> 
</div>
 <div style="clear:both;"></div>   
 
<div id="subnavbar">
<ul id="subnav">
<?php wp_list_categories("sort_column=name&title_li=&depth=3&exclude=$ultra_exclude_cat"); ?>
</ul>	
</div>


</div><!--header-->
<div style="clear:both;"></div>   